<template>
 <div class="yingmoo-medianav">
  <div class="yingmoo_nav">
    <div class="navlogo_text">
      <router-link tag="div" to="/"><img src="../assets/soso/first_img2.png" /></router-link>
    </div>
    <div class="yingmoo_nav_mean">
      <div class="yingmoo_nav_mean_div">
        <input v-model="Key" type="text" id="yingmoo_page_ipt" class="yingmoo_page_ipt" />
        <div class="btn_soso" @click="search">
          <p>搜索</p>
        </div>
        <div class="btn_sousuo">
          <img src="../assets/ym-media/location.png" />
        </div>
      </div>
      <p class="hot_sousuo">热门搜索：
        <span>国际媒体</span>
        <span>LED</span>
        <span>地铁媒体</span>
        <span>电梯框架</span>
        <span>公交车身</span>
        <span>候车亭</span>
      </p>
    </div>
  </div>
  <div class="btn_my">
    <router-link tag="div" to="/ymMemberorder" class="btn_my_shopmall"><div class="img"></div><p>我的商城</p><div class="img1"></div></router-link>
    <router-link tag="div" to="/ymShoppingcart" class="btn_my_settle"><div class="img2"></div><p>购物车结算</p><div class="img1"></div></router-link>
  </div>
</div>
</template>
<script>
export default {
  name: "yingmoo-medianav",
  data() {
    return {
      Key: "",
      params: {
        categoryCode: "",
        mediaArea: ""
      }
    };
  },
  methods: {
    search: function() {
      this.params.key = this.Key;
      window.sessionStorage.setItem("params", JSON.stringify(this.params));
      window.location.href = "../#/ymList";
    }
  }
};
</script>
<style scoped lang="less">
.yingmoo-medianav {
  width: 1200px;
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-around;
  .yingmoo_nav {
    width: 910px;
    display: flex;
    justify-content: space-between;
    .navlogo_text {
      width: 250px;
      margin-top: 20px;
    }
    .yingmoo_nav_mean {
      margin-top: 20px;
      .yingmoo_nav_mean_div {
        width: 495px;
        height: 44px;
        border: none;
        display: flex;
        justify-content: space-between;
        .yingmoo_page_ipt {
          width: 430px;
          background-color: white;
          opacity: 0.7;
          font-size: 24px;
        }
        div {
          border: none;
          font-size: 14px;
          p {
            line-height: 44px;
          }
        }
        .btn_soso {
          width: 86px;
          height: 44px;
          color: white;
          text-align: center;
          background-color: #f29600;
          cursor: pointer;
        }
        .btn_sousuo {
          width: 85px;
          height: 44px;
          text-align: center;
          margin-top: 9px;
        }
      }
    }
    .hot_sousuo {
      font-size: 11px;
      text-align: left;
      margin-top: 10px;
      color: #888888;
      span {
        margin-left: 13px;
      }
      span:hover {
        color: red;
        cursor: pointer;
      }
      .hot_sousuo1 {
        margin-right: 2px;
      }
    }
  }
  .btn_my {
    width: 260px;
    height: 44px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    div {
      width: 109px;
      background-color: #f29600;
      display: flex;
      justify-content: space-around;
      align-items: center;
      p {
        font-size: 14px;
        color: #036eb7;
      }
    }
    .btn_my_shopmall {
      width: 120px;
      border: 1px solid #036eb7;
      background-color: #f9f9f9;
      .img {
        width: 19px;
        height: 26px;
        background-color: #f9f9f9;
        background-image: url(../assets/ym-media/mine.png);
      }
      .img1 {
        width: 8px;
        height: 4px;
        background-color: #f9f9f9;
        background-image: url(../assets/ym-media/so.png);
      }
    }
    .btn_my_settle {
      width: 130px;
      border: 1px solid #036eb7;
      background-color: #f9f9f9;
      .img2 {
        width: 19px;
        height: 26px;
        background-color: #f9f9f9;
        background-image: url(../assets/ym-media/shopping.png);
      }
      .img1 {
        width: 8px;
        height: 4px;
        background-color: #f9f9f9;
        background-image: url(../assets/ym-media/so.png);
      }
    }
    .btn_my_settle:hover {
      border: 1px solid #f29600;
      cursor: pointer;
      p {
        color: #f29600;
      }
      .img2 {
        background-image: url(../assets/ym-media/shopping_hover.png);
      }
      .img1 {
        background-image: url(../assets/ym-media/so_hover.png);
      }
    }
    .btn_my_shopmall:hover {
      border: 1px solid #f29600;
      cursor: pointer;
      p {
        color: #f29600;
      }
      .img {
        background-image: url(../assets/ym-media/mine_hover.png);
      }
      .img1 {
        background-image: url(../assets/ym-media/so_hover.png);
      }
    }
  }
}
</style>
